package com.winning.bi.processer;

import org.apache.commons.configuration.Configuration;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.winning.bi.data.Message;

/**
 * 事件处理抽象类
 * 
 * @author 张大川
 */
public abstract class EventProcesser {
	protected Configuration configuration;

	public Configuration getConfiguration() {
		return configuration;
	}

	public void setConfiguration(Configuration configuration) {
		this.configuration = configuration;
	}

	public abstract boolean process(Message e, String taskName);

	protected ClassPathXmlApplicationContext ac;

	public ClassPathXmlApplicationContext getAc() {
		return ac;
	}

	public void setAc(ClassPathXmlApplicationContext ac) {
		this.ac = ac;
	}

}